<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>显示问卷调查结果</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">


</head>

<body>
	<%
  		request.setCharacterEncoding("utf-8");
  	    
  	
  	%>

	<h1>====使用param和paramValues对象展示注册信息</h1>
	<h3>用户名：${ param.username }</h3>
	<h3>密码：${ param.password }</h3>
	<h3>业余爱好：
		<c:if test="${ not empty paramValues.interests }">
			<c:forEach items="${ paramValues.interests }" var="val"  varStatus="vs">
				${ val }
				<c:if test="${ ! vs.last }">、</c:if>
			</c:forEach>
		</c:if>
		<c:if test="${ empty paramValues.interests }">
			暂无任何业余爱好！
		</c:if>
</h3>
</body>
</html>
